<?php
		class CgProduct extends AppModel
		{
				var $name = "CgProduct";
				var $primarykey = 'id';
				
				var $hasMany = array (
		    		'Attachment' => array (
					'className' => 'Attachment',
					'conditions' => array("Attachment.is_deleted='0'"),
					'foreignKey' => 'pid',
		    		),
    		);
		}
?>